package com.demo.repository;


import com.demo.entity.User;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

/**
 * Created by lenovo on 2017/6/21.
 */
public interface UserRepo extends PagingAndSortingRepository<User, Integer> {
    List<User> findByName(String name);
    
    List<User> findByPhone(String phone);
}
